revCurrentRecordIsLast
Type
function
Summary
Returns whether the current record is the last record in a record set.
Syntax
revCurrentRecordIsLast(<recordSetID>)
Description
Use the revCurrentRecordIsLast function to stop when you reach the end of the records.
If the operation is not successful, the revCurrentRecordIsLast function returns an error message that begins with the string "revdberr".
The revCurrentRecordIsLast function is part of the Database library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure both the "Database" library checkbox and those of the database drivers you are using are checked.
Parameters
Name | Type | Description |
---|---|---|
recordSetID | The number returned by the revQueryDatabase function when the record set was created. |
Examples
revCurrentRecordIsLast(3)
if revCurrentRecordIsLast(testMySQL) then exit repeat
Related
command: revMoveToNextRecord
control structure: function
function: revdb_movefirst, revdb_moveprev, revdb_movelast, revdb_movenext
glossary: LiveCode custom library, record, Standalone Application Settings, standalone application, record set, return
keyword: string
library: Database library
Compatibility and Support
Introduced
LiveCode 1.1
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile